<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="root">
    <count :count="0"></count>
    <count :count="1"></count>
    <count v-text="sum"></count>
</div>


</body>
<script>
    var count = {
        props:['count'],
        template: "<p v-text='count'></p>"
    }
    var vm = new Vue({
        el:'#root',
        components:{
            count:count
        },
        data:{
            sum:1
        }
    })
</script>

</html>